package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.pojo.Advertisement;

/**
* @author 31827
* @description 针对表【Advertisement(广告表单)】的数据库操作Mapper
* @createDate 2024-04-15 17:22:07
* @Entity org.example.pojo.Advertisement
*/
@Mapper
public interface AdvertisementMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Advertisement record);

    int insertSelective(Advertisement record);

    Advertisement selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Advertisement record);

    int updateByPrimaryKey(Advertisement record);

    @Select("select image_url from Advertisement where advertisement_name=#{position}")
    String advertisement(Integer position);
}
